package com.cndatacom.ccsinfoMgr.service.impl;

import com.cndatacom.ccsinfoMgr.dao.IBulletinInfoDao;
import com.cndatacom.ccsinfoMgr.model.BulletinInfo;
import com.cndatacom.ccsinfoMgr.service.IBulletinInfoService;
import com.cndatacom.eweb.common.PaginationModel;

public class BulletinInfoService implements IBulletinInfoService {
	
	private IBulletinInfoDao bulletinInfoDao;

	public boolean delBulletinInfo(BulletinInfo bInfo) {
		return bulletinInfoDao.delBulletinInfo(bInfo);
	}

	public PaginationModel getAllBulletinInfo(int offset, int pageSize) {
		return bulletinInfoDao.getAllBulletinInfo(offset, pageSize);
	}

	public PaginationModel getBulletinInfoByHQL(String hql, int offset, int pageSize) {
		return bulletinInfoDao.getBulletinInfoByHQL(hql, offset, pageSize);
	}

	public BulletinInfo getBulletinInfoById(int id) {
		return bulletinInfoDao.getBulletinInfoById(id);
	}

	public BulletinInfo saveOrUpdateBulletinInfo(BulletinInfo bInfo) {
		return bulletinInfoDao.saveOrUpdateBulletinInfo(bInfo);
	}
	
	public IBulletinInfoDao getBulletinInfoDao() {
		return bulletinInfoDao;
	}

	public void setBulletinInfoDao(IBulletinInfoDao bulletinInfoDao) {
		this.bulletinInfoDao = bulletinInfoDao;
	}


}

